package com.atguigu.tingshu.user.api;

import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.model.user.VipServiceConfig;
import com.atguigu.tingshu.user.service.VipServiceConfigService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * VIP服务配置管理接口
 * @author sun
 */
@RestController
@RequestMapping("api/user/vipServiceConfig")
public class VipServiceConfigApiController {

	@Resource
	private VipServiceConfigService vipServiceConfigService;


	/**
	 * 查询所有VIP服务类型
	 */
	@GetMapping("findAll")
	public Result<List<VipServiceConfig>> findAll(){
		return Result.ok(vipServiceConfigService.findAll());
	}


}

